<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="header.jsp" %>
<%@ page import="java.util.*" %>
<%@ page import="au.edu.unsw.editingtool.global.GlobalConstant" %>
<%@ page import="au.edu.unsw.editingtool.global.Util" %>
<script type="text/javascript">
<%=request.getAttribute(GlobalConstant.requestFormDataJS)%>
// Only script specific to this form goes here.
// General-purpose routines are in a separate file (lib.js).

// Called by the function load() in lib.js
function init_onload() {
	document.check_form.resource_type.onchange();

	// Build the list of faculty to agreements
	//buildListAffiliation("agreements_affiliation1", "faculties");
	
	// Build the list of faculty
	//buildListAffiliation("affiliation_choice", "faculties");

	// Build the list of faculty to contributors
	//buildListAffiliation("moving_image_contributor_affiliation_choice", "faculties");

	// Build the list when we are editing the page
	buildSelectList('subjectslist','subject');

	// Build the creators list when we are editing the page
	buildSelectList('creatorslist','creators');
}

function validate() {
	var errs=0;
	// execute all element validations in reverse order, so focus gets
	// set to the first one in error.
	/*
	
	if (!is_required(document.check_form.resource_type, 'You must select a Resource Type.')) errs += 1; 
	if (!is_required(document.check_form.title, 'You must include the title of your research work.')) errs += 1; 
	if (!is_required(document.check_form.year, 'Please include the year of publication in numeric format.')) errs += 1; 
	if (!is_required(document.check_form.creators, 'You must include at least one author/creator for this research work.')) errs += 1;
	if (!is_required_license('is_author1', 'is_author2', 'is_author3', 'You must complete unsworks licence section.')) errs += 1;
	if (!checkAuthorName('is_author2','inform_last_name', 'inform_first_name', 'creatorslist')) errs +=1;
	if (!checkLicense('is_author1','permission','You must select the radio button!')) errs +=1;
	if (!checkAuthorName('is_author1','rights_last_name', 'rights_first_name', 'creatorslist')) errs +=1;
	if (!checkDepositorName('is_author2','depositor_last_name', 'depositor_first_name')) errs +=1;
	if (!isRightsEmail('is_author2','inform_email','You must include a valid email address for communication and UNSWorks administrative purposes.')) errs += 1;
	if (!isRightsEmail('is_author2','depositor_email','You must include a valid email address for communication and UNSWorks administrative purposes.')) errs += 1;
	if (!isRightsEmail('is_author1','rights_email','You must include a valid email address for communication and UNSWorks administrative purposes.')) errs += 1;
	//if (!is_email(document.check_form._email, 'You must include a valid email address for communication and UNSWorks administrative purposes.')) errs += 1; 
	if(document.check_form.resource_type.options[document.check_form.resource_type.selectedIndex].text=="Moving Image")
	{		
		if (!is_numeric_or_empty(document.check_form.moving_image_minutes, 'Please enter the number of hours, minutes and seconds in numeric format.')) errs += 1;
		else if (!is_seconds(document.check_form.moving_image_minutes, 'If the runtime is greater than 59 seconds, please convert to minutes and seconds (e.g. enter 90 seconds as 0:01:30).')) errs += 1;

		if (!is_numeric_or_empty(document.check_form.moving_image_seconds, 'Please enter the number of hours, minutes and seconds in numeric format.')) errs += 1;
		else if (!is_seconds(document.check_form.moving_image_seconds, 'If the runtime is greater than 59 minutes, please convert to hours and minutes (e.g. enter 90 minutes as 1:30:00).')) errs += 1;

		if (!is_numeric_or_empty(document.check_form.moving_image_hours, 'Please enter the number of hours, minutes and seconds in numeric format.')) errs += 1;				
		//else if (!is_all_zero(document.check_form.moving_image_hours,document.check_form.moving_image_minutes,document.check_form.moving_image_seconds,'The runtime hours, minutes, and seconds must not be a zero number.')) errs += 1;
	}
	if (!is_numeric(document.check_form.year, 'Please include the year of publication in numeric format.')) errs += 1;
	*/

	if (errs>1)
	   alert('There are fields which need correction before sending.  Any problem fields will be indicated in red to the right or below the fields.');

	if (errs==1)
	   alert('There is a field which needs correction before sending. The problem field will be indicated in red to the right or below the field.');

	return (errs==0);
}

//**********************************************************
//* Javascript for handling the dynamic Resource Type divs *
//**********************************************************

function changeDiv(the_div,the_change)
{
  var the_style = getStyleObject(the_div);
  if (the_style != false)
  {
    the_style.display = the_change;
  }
}

function hideAll(select_element)
{
	var intIndex = select_element.selectedIndex;
	var strView = "none";

	for (var i = 0; i < select_element.length; ++i) {
		if (i == intIndex) {
			changeDiv(select_element[i].value,"block");
		} else {
			changeDiv(select_element[i].value,"none");
		}
	}
}

function getStyleObject(objectId) {
  if (document.getElementById && document.getElementById(objectId)) {
    return document.getElementById(objectId).style;
  } else if (document.all && document.all(objectId)) {
    return document.all(objectId).style;
  } else {
    return false;
  }
}

//*************************************
//* Used by the subject select fields *
//*************************************

function select_subject(select_element,textarea_element_id) {
	var textarea_element = document.getElementById(textarea_element_id);
	var intIndex = select_element.selectedIndex;
	if (intIndex > -1) {
           if (select_element[intIndex].value != "") {
               textarea_element.value += select_element[intIndex].value + " \n";
           } else {
               textarea_element.value += select_element[intIndex].text + " \n";
           }
	   select_element[intIndex].selected = false;
	}
}

</script>
<center>

<table width=80% border=0>
	<tr>
  		<td colspan=2>
 		<fieldset>
 		<legend>About the Deposit Form</legend>
 		<ul>
 			<li>To deposit your research work, complete the details below. For further assistance, click the 'Further Information & Help' links on the right side of the page.</li>
 			<li>* denotes mandatory information.</li>
 		</ul>
 		</fieldset> 

<!-- ****************************************************************************************** -->
<!--  START Formdata  																			-->
<!-- ****************************************************************************************** -->

<!-- ****************************************************************************************** -->
<!-- RESOURCE FORM  																			-->
<!-- ****************************************************************************************** -->
<form action="/EditingTool/Preview" name="check_form" id="check_data" method="post">
	<fieldset>
		<legend>Resource Description</legend>
		<table class="formdata_preview" width="100%" border=0>
		<tbody>
		<tr>
			<td colspan="2" valign=top><div align="right"><span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#description');">Further Information &#38; Help</a></span></div></td>
		</tr>
  		<tr>
     		<td colspan="2" valign=top>&nbsp;</td>
  		</tr>
  		<tr>
     		<td valign=top>&nbsp;</td>	
     		<td><i>Please enter the title of your research work, e.g. the title of the article you are depositing.</i><br></td>
  		</tr>
  		<tr>
    		<td valign=top width="25%"> <strong>*</strong> Title:</td>
    		<td>
				<input type="text" name=title class="title" id="title" size=95 onChange="" /><br>
				<span id="title_error" class="error">&nbsp;</span>
    		</td>
  		</tr>
  		<tr>
    		<td valign=top>&nbsp;</td>
    		<td><i>Cut and paste your abstract into the text box below or provide a brief description of the work.</i><br></td>    
  		</tr>
  		<tr>
    		<td valign=top width="25%">Abstract/Description:</td>
    		<td>
				<textarea name=description_abstract rows=5></textarea>
    		</td>
  		</tr>
  		<tr>
    		<td valign=top width="25%">&nbsp;</td>
    		<td valign=top COLSPAN=2><i>Note: If you are depositing a conference paper or presentation, please enter the year the conference was held.</i></td>
  		</tr>
  		<tr>
    		<td valign=top width="25%"> <strong>*</strong>Year of publication:</td>
    		<td>
				<input type="text" name="year" id="publication_year" onchange="is_numeric(this,'');" />      
      			<span id="year_error" class="error">&nbsp;</span>
    		</td>
 		</tr>   
  		<tr>
			<td valign=top>Language:</td>
			<td>
				<select name=language>
					<option value=AF>Afrikaans</option>
					<option value=AL>Albanian</option>
					<option value=AT>Altaic</option>
					<option value=AI>American Indian</option>
					<option value=AM>Amharic</option>
					<option value=AR>Arabic</option>
					<option value=AN>Armenian</option>
					<option value=AZ>Azerbaidzhani</option>
					<option value=BA>Bantu</option>
					<option value=BS>Basque</option>
					<option value=BB>Berber</option>
					<option value=br>Breton</option>
					<option value=BU>Bulgarian</option>
					<option value=BM>Burmese</option>
					<option value=CA>Cantonese</option>
					<option value=CT>Catalan</option>
					<option value=CC>Caucasian</option>
					<option value=CZ>Czech</option>
					<option value=DA>Danish</option>
					<option value=DU>Dutch</option>
					<option value=EN selected>English</option>
					<option value=ET>Estonian</option>
					<option value=FA>Faroese</option>
					<option value=FI>Finnish</option>
					<option value=FL>Flemish</option>
					<option value=FR>French</option>
					<option value=GA>Gaelic</option>
					<option value=GO>Georgian</option>
					<option value=DE>German</option>
					<option value=GR>Greek</option>
					<option value=HE>Hebrew</option>
					<option value=HI>Hindi</option>
					<option value=HU>Hungarian</option>
 					<option value=IC>Icelandic</option>
					<option value=IN>Indonesian</option>
					<option value=IU>Inuit</option>
 					<option value=IA>Iranian</option>
					<option value=IR>Irish</option>
					<option value=IT>Italian</option>
					<option value=JA>Japanese</option>
					<option value=KH>Khmer</option>
					<option value=KS>Khoi-San</option>
					<option value=KO>Korean</option>
					<option value=LA>Laotian</option>
					<option value=LP>Lappish</option>
					<option value=LT>Latvian</option>
					<option value=LI>Lithuanian</option>
					<option value=MG>Malagasy</option>
					<option value=ML>Malay</option>
					<option value=MA>Mandarin</option>
      				<option value=ME>Melanesian</option>
      				<option value=MO>Mongolian</option>
      				<option value=NE>Nepalese</option>
      				<option value=NO>Norwegian</option>
      				<option value=PS>Pashto</option>
      				<option value=PE>Persian</option>
      				<option value=PH>Phillipino</option>
      				<option value=PL>Polish</option>
      				<option value=PY>Polynesian</option>
      				<option value=PO>Portuguese</option>
      				<option value=PR>Provencal</option>
      				<option value=PA>Punjabi</option>
      				<option value=RM>Romanian</option>
      				<option value=RO>Romansch</option>
      				<option value=RU>Russian</option>
      				<option value=SA>Saharan</option>
      				<option value=SC>Serbo-croatian</option>
      				<option value=SL>Slovak</option>
      				<option value=SO>Slovene</option>
      				<option value=SM>Somalian</option>
      				<option value=ES>Spanish</option>
      				<option value=SU>Sudanese</option>
      				<option value=SW>Swahili</option>
      				<option value=SE>Swedish</option>
      				<option value=TA>Tagalog</option>
      				<option value=TH>Thai</option>
      				<option value=TI>Tibetan</option>
      				<option value=TU>Turkish</option>
      				<option value=UR>Uralic</option>
      				<option value=VI>Vietnamese</option>
      				<option value=WA>Walloon</option>
      				<option value=WE>Welsh</option>
   	 			</select>
   			</td>
  		</tr>
<!-- *************************************************************************************************************************************** -->
<!-- ********************************************************* RFCD Code ******************************************************************* -->
<!-- *************************************************************************************************************************************** -->
  		<tr>
     		<td valign=top>RFCD Code(s):</td>
   			<td>
				<i>Locate your <a href="http://www.abs.gov.au/ausstats/abs@.nsf/5e3ac7411e37881aca2568b0007afd16/955FFA4EB1B23847CA25697E0018FB14?opendocument" target="_blank">RFCD</a> codes.</i>
				<br/>
				<input id="rfcd" class="rfcd" type="text" name="rfcd" maxlength="6" size="6">
				&nbsp;<i>You must select 'Confirm' to finalise each RFCD code.</i>
				<br>
				<a href="javascript:void(0);" onClick="javascript:addRFCD('subjectslist','rfcd','subjects');">+ Confirm</a><BR>
				<a href="javascript:void(0);" onClick="javascript:removeList('subjectslist','subjects');">+ Remove</a><BR><br>
				<input type="hidden" id="subjects" name="subject">
				<select size=5 id="subjectslist" multiple="multiple">
				</select>
				<br/>
				<br/>
   			</td>
		</tr>
<!-- **************************************************************************************************************************************** -->
<!-- ********************************************************** KEYWORDS ******************************************************************** -->
<!-- **************************************************************************************************************************************** -->
   		<tr>
    		<td valign=top><a name="keywords">Keyword(s):</a></td>
    		<td>
      			<div id="keyword1">
       			<input type="text" name="keyword1">
       			<br>
      			</div>
      			<div id="keyword2">
       				<input type="text" name="keyword2">
       				<br>
      			</div>	
      			<div id="keyword">
       				<input type="text" name="keyword">
       				<br>
      			</div>
      			<div id="multiple_keywords"></div>
      			<a href="javascript:void(0);" onclick="addField('keyword','multiple_keywords');">+ Add additional keyword</a><br>
      			<a href="javascript:void(0);" onclick="removeField('keyword','multiple_keywords');" >- Remove additional keywords</a><br>&nbsp;
   			</td>
  		</tr>
 		</tbody>
 		</table>
	</fieldset>
	<br/>


<!-- ************************************************************************************************************************************** -->
<!-- ********************************************************* CREATORS ******************************************************************* -->
<!-- *************************************************************************************************************************************  -->
	<fieldset>
   		<a name="creator_info"></a>
     	<legend>About the Author(s)/Creator(s)</legend>
 		<table class="formdata_preview" width="100%" id="creator_field" border=0>
  		<tbody>
  			<tr>
    			<td colspan="3" valign=top><div align="right"><span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#author');">Further Information &#38; Help</a></span></div></td>
	  		</tr>
  			<tr>
    			<td colspan="3" valign=top>
					<span id="creators_error" class="error">&nbsp;</span><br>
					<strong>*</strong><i>List all author(s) or creator(s) of this work <b><u>in the order they appear on the publication</u></b></i>.<br>
			  		<i>You must select 'Confirm' to finalise each author/creator.</i><br>
    			</td>
  			</tr>
  			<tr>
    			<td>Last name:</td>
				<td>First name:</td>
				<td>Affiliation:</td>
  			</tr>
  			<tr>
				<td valign="top"><input type="text" id="last_name_field" ></td>
				<td valign="top"><input type="text" id="first_name_field" ></td>
				<td valign="top" rowspan=2>
					<select id="affiliation_choice" onchange="">
						<option value="">Select affiliation ...</option>
		    		</select><br>
					<div id="div_affiliation_2choice" style="visibility:hidden; display:none">
						<select id="affiliation_2choice">
      						<option value="">Select school, research centre or institute ...</option>
     					</select>
					</div>
					<div id="div_other_affilation" style="visibility:hidden ; display:none">
						<input id="other_affilation" class="rfcd">	
					</div>
				</td>
  			</tr>
 		 	<tr>
  			<tr>
				<td colspan=2 valign="top">
 					<A onclick="confirmCreator('last_name_field','first_name_field','affiliation_choice','affiliation_2choice','other_affilation','creatorslist','creators','is_author1','coauthors','rights');" href="javascript:void(0);">
 						Confirm </A>&nbsp;|&nbsp;
					<A onclick="editCreator('last_name_field','first_name_field','affiliation_choice','affiliation_2choice','other_affilation','creatorslist','creators','is_author1','coauthors','rights');" href="javascript:void(0);">
 						Edit </A>&nbsp;|&nbsp;
					<A onclick="removeCreator('creatorslist','creators','is_author1','coauthors','rights');" href="javascript:void(0);">
 						Remove </A>&nbsp;|&nbsp;
					<A onclick="clearCreator('last_name_field','first_name_field','affiliation_choice','affiliation_2choice','other_affilation');" href="javascript:void(0);">
 						Clear Input Field</A>
				</td>
  			</tr>
  			<tr>
				<td colspan=3 >
					<br/>
					<input type="hidden" id="creators" name="creators">
					<select size=5 id="creatorslist" name="creatorslist"></select>
					<br/>
					<a href="javascript:void(0);" onclick="moveUpList('creatorslist','creators','is_author1','coauthors','rights');">Move Up</A>&nbsp;|&nbsp;
					<a href="javascript:void(0);" onclick="moveDownList('creatorslist','creators','is_author1','coauthors','rights');">Move Down</A><br><br/>
				</td>
  			</tr>
  		</tbody>
 		</table>
	</fieldset>
<br/>
<!-- **************************************************************************************************************************************** -->
<!-- ****************************************************** Resource Type Selection ********************************************************* -->
<!-- **************************************************************************************************************************************** -->
	<fieldset>
		<legend>Select Resource Type</legend>
		<table class="formdata_preview" width="100%" border=0>
		<tbody>
			<tr>
				<td colspan="3" valign=top>
					<div align="right">
						<span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#resource');">Further Information &#38; Help</a></span>
					</div>
          		</td>
        	</tr>
        	<tr>
          		<td valign=top width="25%"> <strong>*</strong> Resource type: </td>
          		<td>
            		<select onchange="hideAll(this);" size=1 name=resource_type>
              			<option value="">Select resource type ...</option>
              			<option value="Book">Book</option>
              			<option value="Book Chapter">Book Chapter</option>
              			<option value="Conference Paper">Conference Paper</option>
              			<option value="Conference Item">Conference Item</option>
              			<option value="Journal Article">Journal Article</option>
	      				<option value="Report">Report</option>
              			<option value="Working Paper">Working Paper</option>
              			<option value="Moving Image">Moving Image</option>
	      				<option value="Other Resource">Other Resource</option>
           			</select>
    	   			<span id="resource_type_error" class="error">&nbsp;</span>
          		</td>
        	</tr>
		</tbody>
  		</table>
	</fieldset>
	<br/>

<!-- START RESOURCE TYPE DIVS -->

<!-- ************************ -->
<!-- BOOK DATA ENtrY ELEMENTS -->
<!-- ************************ -->
	<DIV id="Book" style="display:none">
 		<FIELDSET><LEGEND>About the Book </LEGEND>
 			<TABLE width="100%" border=0>
  			<TBODY>
  				<tr>
     				<td colspan="2" valign=top><div align="right"><span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#book');">Further Information &#38; Help</a></span></div></td>
     			</tr>
  				<tr>
	    			<td>Is this book classified as <a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#A1');">A1</a> for DEST purposes? </td>
    				<td> 
						<label><input type="radio" name="book_peer_reviewed" value="Yes" />yes</label>
						<label><input type="radio" name="book_peer_reviewed" value="No" checked="checked" />no</label>
    				</td>
  				</tr>
  				<tr>
	    			<td width="25%">ISBN:&nbsp;</td>
    				<td><input name=book_isbn /></td>
	  			</tr>
  				<tr>
	    			<td width="25%">Publisher:</td>
    				<td><input name=book_publisher /></td>
				</tr>
  				<tr>
    				<td width="25%">Place of publication:</td>
    				<td><input name=book_place_publication /></td>
				</tr>
  				<tr>
	    			<td width="25%">Edition:</td>
    				<td><input name=book_edition /></td>
  				</tr>
  				<tr>
    				<td width="25%">URL:</td>
    				<td><input name=book_url /></td>
  				</tr>
  			</TBODY>
 			</TABLE>
 		</FIELDSET> 
	</DIV>
 	<br>

<!-- ******************************** -->
<!-- BOOK CHAPTER DATA ENtrY ELEMENTS -->
<!-- *********************************-->
	<DIV id="Book Chapter" style="display:none">
		<FIELDSET>
			<LEGEND>About the Book Chapter </LEGEND>
			<TABLE width="100%" border=0>
	  		<TBODY>
    			<tr>
					<td colspan="2" valign=top><div align="right"><span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#book');">Further Information &#38; Help</a></span></div></td>
    			</tr>
  				<tr>
    				<td>Is this book chapter classified as <a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#B1');">B1</a> for DEST purposes?</td>
    				<td> 
						<label><input type="radio" name="chapter_peer_reviewed" value="Yes" />yes</label>
						<label><input type="radio" name="chapter_peer_reviewed" value="No" checked="checked">no</label>
	    			</td>
  				</tr>
  				<tr>
    				<td width="25%">Pages:&nbsp; </td>
	 	 	  		<td><input name=chapter_page_from maxlength="4" size="4"> to <input name=chapter_page_to maxlength="4" size="4"></td></tr>
  				<tr>
	    			<td width="25%">Book title: </td>
	    			<td><input name=chapter_book_title size="95"></td>
				</tr>
  				<tr>
    				<td width="25%" valign="top">Editor(s): </td>
    				<td>
						<div id=editor>
							<table border=0>
								<th>Editor ( <i id="count_label">1</i> )</th>
								<tr>
		    						<td>Last name:</td>
		    						<td><input name=editor_last_name></td>
		    						<td>First name:</td>
		    						<td><input name=editor_first_name><br></td>
								</tr>
							</table>
						</div>
						<div id="multiple_editors"></div>
 						<a onclick="addField('editor','multiple_editors');" href="javascript:void(0);">
 						<B>+</B> Add another editor</A><br/>
 						<a onclick="removeField('editor','multiple_editors');" href="javascript:void(0);">
	 					<B>-</B> Remove additional editor</A>
					</td>
  				</tr>
  				<tr>
    				<td width="25%">ISBN:</td>
	    			<td><input name=chapter_isbn></td>
				</tr>
  				<tr>
	    			<td width="25%">Publisher:</td>
	    			<td><input name=chapter_publisher></td>
				</tr>
  				<tr>
    				<td width="25%">Place of publication: </td>
	    			<td><input name=chapter_place_publication></td>
  				</tr>
	  			<tr>
    				<td width="25%">Edition:</td>
	    			<td><input name=chapter_edition></td>
  				</tr>
  				<tr>
    				<td width="25%">URL:</td>
    				<td><input name=chapter_url></td>
  				</tr>
	 		</TBODY>
 			</TABLE>
 		</FIELDSET> 
	</DIV>
	<br>

<!-- ************************************ -->
<!-- CONFERENCE PAPER DATA ENtrY ELEMENTS -->
<!-- ************************************ -->
	<DIV id="Conference Paper" style="display:none">
		<FIELDSET>
 			<LEGEND>About the Conference Paper </LEGEND>
 			<TABLE width="100%" border=0>
  			<TBODY>
  				<tr>
     				<td colspan="3" valign=top><div align="right"><span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#conference');">Further Information &#38; Help</a></span></div></td>
  				</tr>
  				<tr bgColor=#cccccc>
    				<td colSpan=3>Peer Reviewed:</td>
  				</tr>
  				<tr>
    				<td colspan="2">Was the full text of this conference paper peer reviewed?</td>
    				<td> 
						<label><input type="radio" name="conference_peer_reviewed" value="Yes">yes</label>
						<label><input type="radio" name="conference_peer_reviewed" value="No" checked="checked">no</label>
    				</td>
  				</tr>
  				<tr bgColor=#cccccc>
    				<td colSpan=3>Conference:</td>
				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Name of conference: </td>
 					   <td width="75%"><input name=conference_name size="95"></td>
				</tr>
  				<tr>
					<td>&nbsp;</td>
    				<td>Month of conference: </td>
    				<td width="75%">
						<select name=conference_month onchange="clone_value('conference_year','publication_year','Year: ');">
							<option value="">Select Month</option>             
							<option value="January">January</option>
							<option value="February">February</option>
              				<option value="March">March</option>
              				<option value="April">April</option>
              				<option value="May">May</option>
             	 			<option value="June">June</option>
							<option value="July">July</option>
             	 			<option value="August">August</option>
             	 			<option value="September">September</option>
             	 			<option value="October">October</option>
             	 			<option value="November">November</option>
             	 			<option value="December">December</option>
              	    	</select>
						&nbsp;&nbsp;&nbsp;<SPAN ID="conference_year">&nbsp;</SPAN>
   					</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>&nbsp;</td>
    				<td>
								<i>In the format City, Country, e.g. Sydney, Australia</i>
    				</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Location: </td>
    				<td width="75%"><input name=conference_location></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>&nbsp;</td>
				    <td><i>Conference proceedings' website or abstract detail</i></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>URL:</td>
    				<td width="75%"><input name=conference_url></td>
				</tr>
  				<tr bgColor=#cccccc>
    				<td colSpan=3>Proceedings:</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>&nbsp;</td>
    				<td><i>Required only if the fulltext version of your paper was published in the proceedings.</i></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Title of proceedings: </td>
    				<td width="75%"><input name=conference_title size="95"></td>
				</tr>
  				<tr>
					<td>&nbsp;</td>
    				<td>&nbsp;</td>
    				<td><i>Please enter the year the proceedings were published.</i></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Year of publication: </td>
    				<td width="75%">
						<input name="conference_proceedings_year" maxlength="4" size="4" onchange="is_numeric(this,'');">
						&nbsp;&nbsp;<span id="conference_proceedings_year_error" class="error">&nbsp;</span>
					</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Publisher:</td>
    				<td width="75%"><input name=conference_publisher></td>
				</tr>
  				<tr>
    				<td>&nbsp;</td>
				    <td>Place of publication: </td>
    				<td width="75%"><input name=conference_place_publication></td></tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Pages:</td>
    				<td width="75%"><input name=conference_page_from maxlength="4" size="4"> 
    					to 
      					<input type="text" name="conference_page_to" maxlength="4" size="4">
					</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>ISBN:</td>
    				<td width="75%"><input name=conference_isbn></td>
				</tr>
  				<tr>
			    	<td>&nbsp;</td>
    				<td>ISSN:</td>
    				<td width="75%"><input name=conference_issn></td>
				</tr>
 			</TBODY>
 			</TABLE>
 		</FIELDSET>
	</DIV>
 	<br>

<!-- *********************************** -->
<!-- CONFERENCE ITEM DATA ENtrY ELEMENTS -->
<!-- *********************************** -->
	<DIV id="Conference Item" style="display:none">
		<FIELDSET>
 			<LEGEND>About the Conference Item </LEGEND>
 			<TABLE width="100%" border=0>
  			<TBODY>
  				<tr>
     				<td colspan="3" valign=top><div align="right"><span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#conference');">Further Information &#38; Help</a></span></div></td>
  				</tr>
  				<tr bgColor=#cccccc>
    				<td colSpan=3>Peer Reviewed:</td>
  				</tr>
  				<tr>
    				<td colspan="2">Was the full text of this conference item peer reviewed?</td>
    				<td> 
						<label>
    						<input type="radio" name="conference_item_peer_reviewed" value="Yes">yes
						</label>
						<label>
        					<input type="radio" name="conference_item_peer_reviewed" value="No" checked="checked">no
						</label>
    				</td>
  				</tr>
  				<tr bgColor=#cccccc>
    				<td colSpan=3>Conference:</td></tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Name of conference: </td>
    				<td width="75%"><input name=conference_item_name size="95"></td></tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Month of conference: </td>
    				<td width="75%">
						<select name=conference_item_month onchange="clone_value('conference_year','publication_year','Year: ');">
							<option value="">Select Month</option>             
							<option value="January">January</option>
							<option value="February">February</option>
              				<option value="March">March</option>
              				<option value="April">April</option>
              				<option value="May">May</option>
             	 			<option value="June">June</option>
							<option value="July">July</option>
    	         	 		<option value="August">August</option>
	             	 		<option value="September">September</option>
             	 			<option value="October">October</option>
             	 			<option value="November">November</option>
             	 			<option value="December">December</option>
              	    	</select>
						&nbsp;&nbsp;&nbsp;<SPAN ID="conference_item_year">&nbsp;</SPAN>
   					</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
				    <td>&nbsp;</td>
    				<td><i>In the format City, Country, e.g. Sydney, Australia</i></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Location: </td>
    				<td width="75%"><input name=conference_item_location></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>&nbsp;</td>
    				<td><i>Conference proceedings' website or abstract detail</i></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>URL:</td>
    				<td width="75%"><input name=conference_item_url></td></tr>
  					<tr bgColor=#cccccc>
    					<td colSpan=3>Proceedings:</td>
  					</tr>
  					<tr>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td><i>Required only if the fulltext version of your paper was published in the proceedings.</i></td>
  					</tr>
  					<tr>
    					<td>&nbsp;</td>
    					<td>Title of proceedings: </td>
    					<td width="75%"><input name=conference_item_title size="95"></td>
  					</tr>
  					<tr>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    				<td>
  			  			<i>Please enter the year the proceedings were published.</i>
    				</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Year of publication: </td>
    				<td width="75%"><input name="conference_item_proceedings_year" maxlength="4" size="4" onchange="is_numeric(this,'');">&nbsp;&nbsp;<span id="conference_proceedings_year_error" class="error">&nbsp;</span></td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Publisher:</td>
    				<td width="75%"><input name=conference_item_publisher></td>
				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Place of publication: </td>
    				<td width="75%"><input name=conference_item_place_publication></td></tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>Pages:</td>
    				<td width="75%">
						<input name=conference_item_page_from maxlength="4" size="4"> 
    					to 
						<input type="text" name="conference_item_page_to" maxlength="4" size="4">
					</td>
  				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>ISBN:</td>
    				<td width="75%"><input name=conference_item_isbn></td>
				</tr>
  				<tr>
    				<td>&nbsp;</td>
    				<td>ISSN:</td>
    				<td width="75%"><input name=conference_item_issn></td>
				</tr>
 			</TBODY>
 			</TABLE>
		 </FIELDSET>
	 	<br>
	</DIV>


<!-- *********************************** -->
<!-- JOURNAL ARTICLE DATA ENtrY ELEMENTS -->
<!-- *********************************** -->
	<DIV id="Journal Article" style="display:none">
		<FIELDSET><LEGEND>About the Journal Article </LEGEND>
			<TABLE width="100%" border=0>
  			<TBODY>
  				<tr>
          			<td colspan="6" valign=top><div align="right"><span class="small"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#journal');">Further Information &#38; Help</a></span></div></td>
  				</tr>
  				<tr>
    				<td>Was this journal article peer reviewed? </td>
    				<td> 
						<label>
    						<input type="radio" name="journal_peer_reviewed" value="Yes">yes
						</label>
						<label>
        					<input type="radio" name="journal_peer_reviewed" value="No" checked="checked">no
						</label>
    				</td>
  				</tr>
  				<tr>
    				<td>Have you uploaded the peer reviewed version of this article? </td>
    				<td> 
						<label><input type="radio" id="journal_pr_yes" name="journal_pr_version" value="Yes">yes</label>
						<label><input type="radio" id="journal_pr_no" name="journal_pr_version" value="No" checked="checked">no</label>
    				</td>
  				</tr>
  				<tr>
    				<td width="25%">Full title of journal:</td>
    				<td colSpan=5><input size=80 name=journal_title></td>
				</tr>
  				<tr>
    				<td width="25%">Vol:</td>
    				<td><input size=5 name=journal_volume></td>
				</tr>
  				<tr>
    				<td>Issue/Number:&nbsp;</td>
    				<td><input size=5 name=journal_issue></td>
    			</tr>
  				<tr>
    				<td width="25%">Pages:</td>
    				<td colspan=5>
						<input size=5 name=journal_page_from /> to 
						<input size=5 name=journal_page_to />
					</td>
				</tr>
  				<tr>
    				<td width="25%">ISSN:</td>
    				<td colSpan=5><input name=journal_issn></td>
  				</tr>
  			</TBODY>
 			</TABLE>
		</FIELDSET> 
	</DIV>
	<br>

<!-- ************************** -->
<!-- Report DATA ENtrY ELEMENTS -->
<!-- ************************** -->
	<DIV id="Report" style="display:none">
 		<FIELDSET>
			<LEGEND>About the Report </LEGEND>
 			<TABLE width="100%" border=0>
  			<TBODY>
  				<tr>
     				<td colspan="2" valign=top>
						<div align="right">
							<span class="small">
								<a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#report');">Further Information &#38; Help</a>
							</span>
						</div>
					</td>
   				</tr>
  				<tr>
	    			<td width="25%">Series/Paper No:</td>
    				<td><input name=report_series_no></td>
  				</tr>
  				<tr>
    				<td width="25%">ISBN:&nbsp;</td>
    				<td><input name=report_isbn></td>
  				</tr>
  				<tr>
    				<td width="25%">Publisher:</td>
    				<td><input name=report_publisher></td></tr>
  				<tr>
    				<td width="25%">Place of publication:</td>
    				<td><input name=report_place_publication></td>	
  				</tr>
  				<tr>
    				<td width="25%">Edition:</td>
    				<td><input name=report_edition></td>
  				</tr>
  				<tr>
    				<td width="25%">URL:</td>
    				<td><input name=report_url></td>
  				</tr>
  			</TBODY>
 			</TABLE>
 		</FIELDSET> 
	</DIV>
	<br>

<!-- ********************************* -->
<!-- WORKING PAPER DATA ENtrY ELEMENTS -->
<!-- ********************************* -->
	<DIV id="Working Paper" style="display:none">
		<FIELDSET>
 			<LEGEND>About the Working Paper </LEGEND>
 			<TABLE width="100%" border=0>
  			<TBODY>
  				<tr>
     				<td colspan="2" valign=top>
						<div align="right">
							<span class="small">
								<a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#paper');">Further Information &#38; Help</a>
							</span>
						</div>
					</td>
  				</tr>
  				<tr>
    				<td>Series title:</td>
    				<td><input name=working_paper_title></td>
  				</tr>
  				<tr>
    				<td width="25%">Series/Paper number: </td>
    				<td><input name=working_paper_number></td>
				</tr>
  				<tr>
    				<td width="25%">Publisher:</td>
    				<td><input name=working_paper_publisher></td>
				</tr>
  				<tr>
    				<td width="25%">Place of publication: </td>
    				<td><input name=working_paper_place_publication></td></tr>
  				</tr>
  				<tr>
    				<td width="25%">ISBN:&nbsp;</td>
    				<td><input name=working_paper_isbn></td>
				</tr>
  				<tr>
    				<td width="25%">ISSN:</td>
    				<td><input name=working_paper_issn></td>
				</tr>
  				<tr>
    				<td width="25%">URL:</td>
    				<td><input name=working_paper_url></td>
  				</tr>
   			</TBODY>
			</TABLE>
 		</FIELDSET>
 	</DIV>
	<br>

<!-- ********************************* -->
<!-- MOVING IMAGE DATA ENtrY ELEMENTS -->
<!-- ********************************* -->
	<DIV id="Moving Image" style="display:none">
		<FIELDSET>
 			<LEGEND>About the Moving Image </LEGEND>
 			<TABLE width="100%" border="0">
  			<TBODY>
  				<tr>
     				<td colspan="2" valign=top>
						<div align="right">
							<span class="small">
								<a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#moving_image');">Further Information &#38; Help</a>
							</span>
						</div>
					</td>
  				</tr>
  				<tr>
    				<td>Runtime:</td>
    				<td>
						hours:minutes:seconds<BR>
						<input name="moving_image_hours" maxlength="1" size="1" value="0" />:
						<input name="moving_image_minutes" maxlength="2" size="2" value="00" />:
						<input name="moving_image_seconds" maxlength="2" size="2" value="00" />
						<BR>
						<span id="moving_image_hours_error" class="error" style="visibility:hidden; display:none">&nbsp;</span>
						<span id="moving_image_minutes_error" class="error" style="visibility:hidden; display:none">&nbsp;</span>
						<span id="moving_image_seconds_error" class="error" style="visibility:hidden; display:none">&nbsp;</span>
    				</td>
  				</tr>
  				<tr>
    				<td width="25%" valign=top>Contributors:</td>
    				<td>
 						<table id="creator_field" border="0">
  						<tbody>
  							<tr>
    							<td colspan="4" valign=top>
									<span id="contributors_error" class="error">&nbsp;</span>
									<br>
									<strong>*</strong>
									<i>Enter each contributor(s) role, name and affiliation.</i>.
									<br>
			  						<i>You must select 'Confirm' to finalise each contributor.</i>
									<br>
    							</td>
  							</tr>
  							<tr>
								<td width="20">Contributor Type:</td>
    							<td width="50">Last name:</td>
								<td width="50">First name:</td>
								<td>Affiliation:</td>
  							</tr>
  							<tr>
								<td valign="top">
									<select id="moving_image_contributor_type_field">
      									<option value="Director">Director</option>
      									<option value="Writer">Writer</option>
										<option value="Cast">Cast</option>
    								</select>
								</td>
								<td valign="top">
									<input type="text" id="moving_image_contributor_last_name_field" >
								</td>
								<td valign="top">
									<input type="text" id="moving_image_contributor_first_name_field" >
								</td>
								<td valign="top" rowspan=2>
									<select id="moving_image_contributor_affiliation_choice" 
										onchange="selectAction('moving_image_contributor_affiliation_choice', 
										'moving_image_contributor_affiliation_2choice', 
										'moving_image_contributor_other_affilation');">
										<option value="">Select affiliation ...</option>
	    							</select>
									<br>
									<div id="div_moving_image_contributor_affiliation_2choice" style="visibility:hidden; display:none">
										<select id="moving_image_contributor_affiliation_2choice">
      										<option value="">Select school, research centre or institute ...</option>
     									</select>
									</div>
									<div id="div_moving_image_contributor_other_affilation" style="visibility:hidden ; display:none">
										<input id="moving_image_contributor_other_affilation" class="rfcd">	
									</div>
								</td>
  							</tr>
  							<tr>
								<td colspan="4" valign="top">
 									<A onclick="moving_image_contributor_confirm('moving_image_contributor_type_field',
										'moving_image_contributor_last_name_field',
										'moving_image_contributor_first_name_field',
										'moving_image_contributor_affiliation_choice',
										'moving_image_contributor_affiliation_2choice',
										'moving_image_contributor_other_affilation',
										'moving_image_contributors_list',
										'moving_image_contributors'
										);" 
										href="javascript:void(0);">
 										Confirm 
									</A>
									&nbsp;|&nbsp;
									<A onclick="moving_image_contributor_edit('moving_image_contributor_type_field',
										'moving_image_contributor_last_name_field',
										'moving_image_contributor_first_name_field',
										'moving_image_contributor_affiliation_choice',
										'moving_image_contributor_affiliation_2choice',
										'moving_image_contributor_other_affilation',
										'moving_image_contributors_list',
										'moving_image_contributors'
										);" 
										href="javascript:void(0);">
 										Edit 
									</A>
									&nbsp;|&nbsp;
									<A onclick="moving_image_contributor_remove('moving_image_contributors_list',
										'moving_image_contributors'
										);" 
										href="javascript:void(0);">
 										Remove 
									</A>&nbsp;|&nbsp;
									<A onclick="moving_image_contributor_clear('moving_image_contributor_type_field',
										'moving_image_contributor_last_name_field',
										'moving_image_contributor_first_name_field',
										'moving_image_contributor_affiliation_choice',
										'moving_image_contributor_affiliation_2choice',
										'moving_image_contributor_other_affilation'
										);" 
										href="javascript:void(0);">
 										Clear Input Field
									</A>
								</td>
  							</tr>
  							<tr>
								<td colspan="4">
									<br/>
									<input type="hidden" id="moving_image_contributors" name="moving_image_contributors" />
									<select size=5 id="moving_image_contributors_list" name="moving_image_contributors_list">
									</select>
									<br/>
									<a href="javascript:void(0);" 
										onclick="moving_image_contributor_moveUpList('moving_image_contributors_list','moving_image_contributors');">
										Move Up
									</A>
									&nbsp;|&nbsp;
									<a href="javascript:void(0);" 
										onclick="moving_image_contributor_moveDownList('moving_image_contributors_list','moving_image_contributors');">
										Move Down
									</A>
									<br><br/>
								</td>
  							</tr>
  						</tbody>
 						</table>
    				</td>
  				</tr>
  			</TBODY>
 			</TABLE>
		</FIELDSET>
	</DIV>
	<br>

<!-- ********************************** -->
<!-- OTHER RESOURCE DATA ENtrY ELEMENTS -->
<!-- ********************************** -->
	<DIV id="Other Resource" style="display:none">
 		<FIELDSET>
			<LEGEND>About this 'Other' Resource Type</LEGEND>
 			<TABLE width="100%" border=0>
  			<TBODY>
  				<tr>
     				<td colspan="2" valign=top>
						<div align="right">
							<span class="small">
								<a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html#other');">Further Information &#38; Help</a>
							</span>
						</div>
					</td>
    			</tr>
  				<tr>
    				<td colspan="2">
Other research work that does not fit into a predefined category above, e.g. audiovisual materials, sound, images, etc., should be included here.<br>
<i>Please enter any relevant information related to the oaddtional information field, e.g. publication or production details:</i>
					</td>
  				</tr>
  			</TBODY>
 			</TABLE>
 		</FIELDSET> 
 	</DIV>
<br>

<!-- ****************************************************************************************** -->
<!--  Formdata  Submit Button																	--> 
<!-- ****************************************************************************************** -->

 	<fieldset>
  		<legend>If you agree to the licence above please click 'I Agree'. This will direct you to a preview of your submission.</legend>
		<div align="right"><a href="javascript:open_window('%($VIEW_URL)%/help/deposit.html');">Further Information &#38; Help</a></div>
  		<input type="submit" name="submit" value="I Agree" onClick="	
			reset_runtime(document.check_form.moving_image_hours,document.check_form.moving_image_minutes,document.check_form.moving_image_seconds);
 		"/> 		
 	</fieldset>

		<INPUT TYPE=HIDDEN ID="rights_date" NAME="rights_date" value="">
		<INPUT TYPE=HIDDEN ID="rights_hidden" NAME="rights" value="">

		<input type="hidden" name="<%=GlobalConstant.requestCommand%>" value="<%=GlobalConstant.cmdPreview%>">
		<input type="hidden" name="<%=GlobalConstant.pid%>" value="<%=request.getAttribute(GlobalConstant.pid)%>">

</form>
<!-- ****************************************************************************************** -->
<!--  END Formdata  																			-->
<!-- ****************************************************************************************** -->

 		</td>
	</tr>
</table>
</center>
<%@ include file="footer.jsp" %>